/**
 * @Author: LongTao
 * @program: day01_longtao_spring_1917JA_20201223
 * @description: 用户实体类
 * @create: 2020-12-23 16:04
 * @version:1.0
 **/
package com.longtao.spring.pojo;

import lombok.Data;


public class User {
    private String id;
    private String name;
    private int age;
    private char sex;

    public User() {
    }

    public User(String id, String name, int age, char sex) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.sex = sex;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public char getSex() {
        return sex;
    }

    public void setSex(char sex) {
        this.sex = sex;
    }

    @Override
    public String toString() {
        return "User{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", sex=" + sex +
                '}';
    }
}